
-- 操作系统名
local os_name = vim.uv.os_uname().sysname

local global = {
    is_mac = os_name == "Darwin"
    is_linux = os_name == "Linux"
    is_windows = os_name == "Windows_NT"
    is_wsl = vim.fn.has("wsl") == 1
    user_home = self.is_windows and os.getenv("USERPROFILE") or os.getenv("HOME")
}

return global
